package com.bit.cfdi.web.ws.timbrado;

public class WS_DeskSoapProxy implements com.bit.cfdi.web.ws.timbrado.WS_DeskSoap {
  private String _endpoint = null;
  private com.bit.cfdi.web.ws.timbrado.WS_DeskSoap wS_DeskSoap = null;
  
  public WS_DeskSoapProxy() {
    _initWS_DeskSoapProxy();
  }
  
  public WS_DeskSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initWS_DeskSoapProxy();
  }
  
  private void _initWS_DeskSoapProxy() {
    try {
      wS_DeskSoap = (new com.bit.cfdi.web.ws.timbrado.WS_DeskLocator()).getWS_DeskSoap();
      if (wS_DeskSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wS_DeskSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wS_DeskSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wS_DeskSoap != null)
      ((javax.xml.rpc.Stub)wS_DeskSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.bit.cfdi.web.ws.timbrado.WS_DeskSoap getWS_DeskSoap() {
    if (wS_DeskSoap == null)
      _initWS_DeskSoapProxy();
    return wS_DeskSoap;
  }
  
  public java.lang.String[] pruebaCFDI(java.lang.String usuario, java.lang.String password, java.lang.String RFC, java.lang.String serie, java.lang.String CFD) throws java.rmi.RemoteException{
    if (wS_DeskSoap == null)
      _initWS_DeskSoapProxy();
    return wS_DeskSoap.pruebaCFDI(usuario, password, RFC, serie, CFD);
  }
  
  public java.lang.String[] agregaCliente(java.lang.String usuario, java.lang.String password, java.lang.String RFC, java.lang.String serie, int creditos) throws java.rmi.RemoteException{
    if (wS_DeskSoap == null)
      _initWS_DeskSoapProxy();
    return wS_DeskSoap.agregaCliente(usuario, password, RFC, serie, creditos);
  }
  
  public java.lang.String[] obtieneTimbres(java.lang.String usuario, java.lang.String password, java.lang.String RFC, java.lang.String serie) throws java.rmi.RemoteException{
    if (wS_DeskSoap == null)
      _initWS_DeskSoapProxy();
    return wS_DeskSoap.obtieneTimbres(usuario, password, RFC, serie);
  }
  
  public java.lang.String[] obtieneSeries(java.lang.String usuario, java.lang.String password, java.lang.String RFC) throws java.rmi.RemoteException{
    if (wS_DeskSoap == null)
      _initWS_DeskSoapProxy();
    return wS_DeskSoap.obtieneSeries(usuario, password, RFC);
  }
  
  public java.lang.String[] obtieneUUIDs(java.lang.String usuario, java.lang.String password, java.lang.String RFC, java.lang.String serie) throws java.rmi.RemoteException{
    if (wS_DeskSoap == null)
      _initWS_DeskSoapProxy();
    return wS_DeskSoap.obtieneUUIDs(usuario, password, RFC, serie);
  }
  
  public java.lang.String[] consumeTimbre(java.lang.String usuario, java.lang.String password, java.lang.String RFC, java.lang.String serie, java.lang.String CFD) throws java.rmi.RemoteException{
    if (wS_DeskSoap == null)
      _initWS_DeskSoapProxy();
    return wS_DeskSoap.consumeTimbre(usuario, password, RFC, serie, CFD);
  }
  
  public java.lang.String[] cancelaCFDI(java.lang.String usuario, java.lang.String password, java.lang.String RFCEmisor, java.lang.String serieEmisor, java.lang.String UUID, java.lang.String certificadoPKCS12_Base64, java.lang.String passwordPKCS12) throws java.rmi.RemoteException{
    if (wS_DeskSoap == null)
      _initWS_DeskSoapProxy();
    return wS_DeskSoap.cancelaCFDI(usuario, password, RFCEmisor, serieEmisor, UUID, certificadoPKCS12_Base64, passwordPKCS12);
  }
  
  public java.lang.String[] confirmaRecepcion(java.lang.String usuario, java.lang.String password, java.lang.String RFCEmisor, java.lang.String serie, java.lang.String UUID) throws java.rmi.RemoteException{
    if (wS_DeskSoap == null)
      _initWS_DeskSoapProxy();
    return wS_DeskSoap.confirmaRecepcion(usuario, password, RFCEmisor, serie, UUID);
  }
  
  public java.lang.String[] obtieneXMLPendientes(java.lang.String usuario, java.lang.String password, java.lang.String RFCEmisor, java.lang.String serie) throws java.rmi.RemoteException{
    if (wS_DeskSoap == null)
      _initWS_DeskSoapProxy();
    return wS_DeskSoap.obtieneXMLPendientes(usuario, password, RFCEmisor, serie);
  }
  
  public java.lang.String[] obtieneComplementoTimbre(java.lang.String usuario, java.lang.String password, java.lang.String selloCFD) throws java.rmi.RemoteException{
    if (wS_DeskSoap == null)
      _initWS_DeskSoapProxy();
    return wS_DeskSoap.obtieneComplementoTimbre(usuario, password, selloCFD);
  }
  
  public java.lang.String[] generarPfx(java.lang.String usuario, java.lang.String password, java.lang.String RFCEmisor, java.lang.String llavePublicaBase64, java.lang.String llavePrivadaBase64, java.lang.String passwordCertificado) throws java.rmi.RemoteException{
    if (wS_DeskSoap == null)
      _initWS_DeskSoapProxy();
    return wS_DeskSoap.generarPfx(usuario, password, RFCEmisor, llavePublicaBase64, llavePrivadaBase64, passwordCertificado);
  }
  
  
}